 <{extends file="<{$tempdir}>/public/wxsite.html"}>  
<{block name=extendcss}>  
 <{/block}>
 <{block name=myScrolljs}>
<script> 
var scroll1, scroll2;
function loaded() { 
	scroll1 = new iScroll('wrapper',{
		useTransform: false,
		onBeforeScrollStart: function (e) {
			var target = e.target;
			while (target.nodeType != 1) target = target.parentNode;

			if (target.tagName != 'SELECT' && target.tagName != 'INPUT' && target.tagName != 'TEXTAREA'){
				e.preventDefault();
				}
		}
	});   
 }

document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
document.addEventListener('DOMContentLoaded', function () { setTimeout(loaded, 200); }, false);
</script>
<{/block}>
<{block name=hearnav}>
<div class="toptitCon">
 <div class="toptitBox">
  <div class="toptitL"><i></i></div>
  <div class="toptitC"><h3>商家入驻</h3></div>
 </div>
</div>
<{/block}>
<{block name=sitetitle}>商家入驻<{/block}>
 <{block name=blockcontent}>   
 <div id="wrapper" style="top:40px;">
	<div id="scroller">
 
	
<!--------信息进度-------->
<div class="processCon">
 <i class="pro_01"></i>
 <span class="proaL proaA">商家资料</span>
 <span class="proaC">账户信息</span>
 <span class="proaR">网站审核</span>
</div>
<!--------提示信息-------->
<div class="mesepromptCon">
 <ul>
  <li>1.完善店铺资料，以便于我们了解您的情况。</li>
  <li>2.认证所需资料不公开给任何组织和个人。</li>
  <li>3.审核通过的信息无法修改，如需帮助请致电客服：<{$litel}></li>
 </ul>
</div>
<!--------填写信息-------->
<div class="mesefillinfo">
 <ul>
   <li><span>联系电话：</span><input type="text" id="shopphone" value=""  placeholder="请输入电话"></li>
  <li><span>店铺名称：</span><input type="text" id="shopname" value=""  placeholder="请输入店铺名称"></li>
  <li><span>店铺地址：</span><input type="text" id="shopaddress" value="" placeholder="请输入店铺地址"></li>
  <li><span>店铺类型：</span>
<select name="shoptype" id="shoptype" style="width:70%;" >
                 	<{foreach from=$catlist item=itv}>
		 <option  value="<{$itv['cattype']}>_<{$itv['id']}>"   ><{$catarr[$itv['cattype']]}>-<{$itv['name']}></option>
													<{/foreach}>
							
                      </select>	</li>
 </ul>
</div>
<!--------确认支付-------->
<div class="mesedete" style="margin-top:20px; margin-bottom:20px;"><input type="button" onclick="nextSub();" value="下一步"></div>
	 
	
  </div>
</div> 

  
<script>

function nextSub(){
	 
		  $('#loading').show();
		 
		url = siteurl+'/index.php?ctrl=wxsite&action=sjapplyrz&datatype=json&random=@random@';
     	  url = url.replace('@random@', 1+Math.round(Math.random()*1000));
        $.ajax({         //script定义
                 url: url.replace('@random@', 1+Math.round(Math.random()*1000)),
                 dataType: "json",
                 async:true,
                 data:{'shopphone':$("#shopphone").val(),'shopname':$("#shopname").val(),'shopaddress':$('#shopaddress').val(),'shoptype':$('#shoptype').val()},
                 success:function(content) { 
                 	if(content.error ==  false){
					
				 
					 window.location.href=  siteurl+'/index.php?ctrl=wxsite&action=shangjiaapply&shopphone='+content.msg.shopphone+'&shopname='+content.msg.shopname+'&shopaddress='+content.msg.shopaddress+'&shoptype='+content.msg.shoptype+'  ' ;
						 
							
                 	}else{
                 		Tmsg(content.msg);
                 	}
                  	$('#loading').toggle();
                 
                 },
                 error:function(){
                  $('#loading').toggle();
                 }
        }); 
		// setTimeout("myyanchi()", 500 ); 
	  $('#loading').show();
}
 
</script>
 
<{/block}>